package com.huopaolan.yohuoshop.Adapter;

import android.util.Log;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.huopaolan.yohuoshop.Bean.BrandEntity;
import com.huopaolan.yohuoshop.NetWork.API;
import com.huopaolan.yohuoshop.R;

public class BrandHorizontalAdapter extends BaseQuickAdapter<BrandEntity.Values, BaseViewHolder> {
    public BrandHorizontalAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, BrandEntity.Values item) {
        Log.d("SSSS", "未进入");
        ImageView imageView = helper.getView(R.id.recommend_brand);
        Glide.with(helper.itemView.getContext()).load(API.BaseUrl + item.brand_icon).into(imageView);
    }
}
